﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminPage.Master" 
    AutoEventWireup="true" CodeBehind="CategoryList.aspx.cs" Inherits="Electure.Admin.Categories" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:HyperLink ID="HyperLink1" NavigateUrl="~/Admin/EditCategory.aspx" CssClass="btn btn-primary" role="button" runat="server">Додати нову</asp:HyperLink>
    <br /><br />
    <asp:Repeater ID="repCategories" runat="server" OnItemDataBound="repCategories_ItemDataBound" OnItemCommand="repCategories_ItemCommand">
        <HeaderTemplate>
            <table style="width: 100%" class="table">
                <tr>
                    <th style="width: 300px"></th>
                    <th>Назва</th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td style="height: 35px">
                    <asp:Button ID="btEdit" CssClass="btn" role="button" CommandName="Edit" runat="server" Text="Редагувати" />
                    <asp:Button ID="btDelete"  CssClass="btn" role="button" CommandName="Delete" runat="server" Text="Видалити" />
                </td>
                <td>
                    <asp:Label ID="lbName" style="line-height: 35px" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
